import request from '@/utils/request'

export function list(data) {
    return request({
        url: '/role/list',
        method: 'post',
        data
    })
}

export function add(data) {
    return request({
        url: '/role/add',
        method: 'post',
        data
    })
}

export function del(data) {
    return request({
        url: '/role/del',
        method: 'post',
        data
    })
}

export function mod(data) {
    return request({
        url: '/role/mod',
        method: 'post',
        data
    })
}
export function menus(data) {
    return request({
        url: '/role/menus',
        method: 'post',
        data
    })
}

export function queryid(data) {
    return request({
        url: '/role/queryid',
        method: 'post',
        data
    })
}
export function all() {
    return request({
        url: '/role/all',
        method: 'get'
    })
}

export function owntrade(data) {
    return request({
        url: '/role/owntrade',
        method: 'post',
        data
    })
}
export function unowntrade(data) {
    return request({
        url: '/role/unowntrade',
        method: 'post',
        data
    })
}


export function addtrades(data) {
    return request({
        url: '/role/addtrades',
        method: 'post',
        data
    })
}

export function deltrade(data) {
    return request({
        url: '/role/deltrade',
        method: 'post',
        data
    })
}
